package service;

import dao.workdao.WorkDao;
import dao.workdao.WorkDaoImpl;
import model.Work;

public class releaseWorkService {
    public String release(Work work) throws IllegalAccessException, ClassNotFoundException, Exception{
    	boolean flag=false;
    	WorkDao workdao=new WorkDaoImpl();
        flag=workdao.save(work);
        if(flag)
        	return "success";
        else
        	return "fail";
    }
}
